package com.sukumar.android.backit.bean;

public class BackItRuleBean {
	private int ruleId = -1;
	private String ruleName = "";
	private String pattern = "";
	private String notificationUri = "";
	private boolean vibrate = false;
	private boolean ruleEnabled = false;
	private int repeat = -1;
	
	public String toString() {
		return this.getRuleName() +", with pattern \""+this.getPattern()+"\"";
	}

	public boolean equals(Object o) {
		return o instanceof BackItRuleBean
		&& ((BackItRuleBean) o).ruleId == this.ruleId;
	}

	public int getRuleId() {
		return ruleId;
	}
	public void setRuleId(int ruleId) {
		this.ruleId = ruleId;
	}
	public String getRuleName() {
		return ruleName;
	}
	public void setRuleName(String ruleName) {
		this.ruleName = ruleName;
	}
	public String getPattern() {
		return pattern;
	}
	public void setPattern(String pattern) {
		this.pattern = pattern;
	}
	public String getNotificationUri() {
		return notificationUri;
	}
	public void setNotificationUri(String notificationUri) {
		this.notificationUri = notificationUri;
	}
	public boolean isVibrate() {
		return vibrate;
	}
	public void setVibrate(boolean vibrate) {
		this.vibrate = vibrate;
	}
	public boolean isRuleEnabled() {
		return ruleEnabled;
	}
	public void setRuleEnabled(boolean ruleEnabled) {
		this.ruleEnabled = ruleEnabled;
	}

	public int getRepeat() {
		return repeat;
	}

	public void setRepeat(int repeat) {
		this.repeat = repeat;
	}
}
